<?php

class MCounterClass extends baseModel {

	public function UpdateCounter() {
		$this->SimpleQuery("UPDATE dino_counter SET Count = Count+1 WHERE CounterType = 'TOTAL'");
	}

	public function GetCounter($isCounterType = "TOTAL") {
		$lsResult = $this->SimpleQuery("SELECT Count FROM dino_counter WHERE CounterType = '".$isCounterType."'");
		return $lsResult[0]["COUNT"];
	}

}

?>